//
//  WCNFansCell.m
//  WCN
//
//  Created by wsj2015 on 15/9/22.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNFansCell.h"
#import "Macros.h"
#import "WCImageView +setImage.h"
@implementation WCNFansCell

- (void)awakeFromNib {
    self.bgView.layer.borderWidth =kOnePX;
    self.bgView.layer.borderColor =kBorderColor.CGColor;
    self.fansIcon.layer.cornerRadius = 21;
    self.fansIcon.clipsToBounds =YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)configFansModel:(WCNFansModel *)fans
{
    if (fans.name) {
        self.nameLabel.text =[fans.name stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

    }else{
        self.nameLabel.text =@"姓名未知";
    }
//    if (fans.sex) {
//        if ([fans.sex isEqualToString:@"MALE"]) {
//            self.mobileLabel.text =@"男";
//        }else{
//            self.mobileLabel.text =@"女";
//        }
//        
//    }else{
//        self.mobileLabel.text =@"性别未知";
//    }
//      self.sexLabel.text =[NSString stringWithFormat:@"服务地址:%@",fans.address];
    [self.fansIcon setImageWithUrl:fans.avatarFileId];

    if (fans.isSelect ==1) {
        self.selectImage.image =[UIImage imageNamed:@"Mult_Select"];
    }else{
        self.selectImage.image =[UIImage imageNamed:@"Selected_no"];
    
    }
    
    
}
@end
